 <table id="res" cellpadding="2" cellspacing="2" width="100%">
  <tr>
   <th colspan="2" style="border-bottom: ;">基本信息</th>
  </tr>
  <tr>
   <th width="30%">站点名称：</th>
   <td><input type="text" name="dname" id="dname" value="<?=isset($dian['name'])?$dian['name']:''?>" /></td>
  </tr>
  <tr>
   <th>站点地址：</th>
   <td><input type="text" name="address" id="address" value="<?=isset($dian['address'])?$dian['address']:''?>" /></td>
  </tr>
  <tr>
   <th>描述：</th>
   <td><input type="text" name="content" id="content" value="<?=isset($dian['content'])?$dian['content']:''?>" /></td>
  </tr>
  <tr>
   <th>经度：</th>
   <td><input type="text" name="lng" id="lng" value="<?=isset($dian['lng'])?$dian['lng']:''?>" /></td>
  </tr>
  <tr>
   <th>纬度：</th>
   <td><input type="text" name="lat" id="lat" value="<?=isset($dian['lat'])?$dian['lat']:''?>" /></td>
  </tr>
  <tr>
   <th>站点类别：</th>
   <td>
    <select name="type" id="type">
     <option value="">请选择...</option>
     <?php foreach($type as $t){?>
     <option value="<?=$t['id']?>"><?=$t['name']?></option>
     <?php }?>
    </select>
   </td>
  </tr>
  <tr>
   <td colspan="2">
   <input type="hidden" name="operate" value="<?=$operate?>" />
   <?php if(isset($dian['id'])){?>
   <input type="hidden" name="did" value="<?=$dian['id']?>" />
   <?php }?>
   </td>
  </tr>
 </table>